package com.lianjia.sh.tools.event.listener;

import com.lianjia.sh.tools.event.event.PropertyAddEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * Created by yangsp1 on 16/6/24.
 */
@Component
public class PropertyAddSendEmailListener implements ApplicationListener<PropertyAddEvent> {

    @Override
    public void onApplicationEvent(PropertyAddEvent propertyAddEvent) {
        System.out.println("房源新增并发邮件监听器：监听到房源新增，登录人为：" + propertyAddEvent.getLoginEmp().getEmpName());
    }
}
